import request from '@/utils/request'

// 查询调度命令列表
export function listLogOrders(query) {
  return request({
    url: '/system/logOrders/list',
    method: 'get',
    params: query
  })
}

// 查询调度命令详细
export function getLogOrders(id) {
  return request({
    url: '/system/logOrders/' + id,
    method: 'get'
  })
}

// 新增调度命令
export function addLogOrders(data) {
  return request({
    url: '/system/logOrders',
    method: 'post',
    data: data
  })
}

// 修改调度命令
export function updateLogOrders(data) {
  return request({
    url: '/system/logOrders',
    method: 'put',
    data: data
  })
}

// 删除调度命令
export function delLogOrders(id) {
  return request({
    url: '/system/logOrders/' + id,
    method: 'delete'
  })
}

// 导出调度命令
export function exportLogOrders(query) {
  return request({
    url: '/system/logOrders/export',
    method: 'get',
    params: query
  })
}
